import java.sql.SQLOutput;

/**
 * @Author: linzp
 * @Date: 2021/11/08/11:44
 */
public class thread_demo {
  static class thdemo extends Thread{
        public void run(){
            System.out.println("hello thdemo");
        }
  }

    static class rundemo implements Runnable{
        public void run(){
            System.out.println("hello thdemo");
        }
    }

    public static void main(String[] args) {
        new thdemo().start();
        new Thread(new rundemo()).start();
        new Thread(new Runnable() {
            @Override
            public void run() {

            }
        }
        ).start();

    }
}
